package com.liliudong.template.common.request.sys;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 *  新增DTO
 *
 * @author liudo
 * @date 2024-08-01 20:14:50
 */
@Data
public class SysDictModifyRequest {
	/**
	 *
	 */
    private String name;
	/**
	 *
	 */
    private String code;

	/**
	 * sys dict项添加dtos
	 */
	private List<SysDictModifyRequest.SysDictItem> sysDictItemList;

	@Data
	public static class SysDictItem {
		/**
		 * 标签名
		 */
		@NotNull(message = "标签名不能为空")
		private String label;
		/**
		 * 字典值
		 */
		@NotNull(message = "字典值不能为空")
		private String value;
	}
}
